<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/date.js"></script>
	</head>
	<body>
		<button onclick="clickHandle()">点击</button>
		<script>
			function clickHandle() {
				let date = '2022-03-31'
				console.log(getCurrentDay());
				console.log(getCurrentDay('prev'));
				console.log(getCurrentDay('next'));
				console.log(getCurrentMonth());
				console.log(getCurrentMonth('prev'));
				console.log(getCurrentMonth('next'));
				console.log(getCurrentMonth('prev', date));
				console.log(getCurrentMonth('next', date));
				console.log(getCurrentWeek(date));
				console.log(friendlyDate(date));
			}
		</script>
	</body>
</html>
